package com.example.vueblog.annotation;

import com.example.vueblog.common.enums.BusinessTypeEnum;

import java.lang.annotation.*;

/**
 * 日志注解
 *
 * @author yushunshun
 * @date 2022/7/10 0:57
 */
@Documented
@Target({ElementType.TYPE, ElementType.METHOD})//该注解只能写在类上
@Retention(RetentionPolicy.RUNTIME)//停留在源码阶段
public @interface Log {

    /**
     * 模块
     */
    public String title() default "";

    /**
     * 功能
     */
    public BusinessTypeEnum businessType() default BusinessTypeEnum.OTHER;
}
